SetCookie

Syntax: @SetCookie <name>,<value>[,<expire hours>]

The SetCookie command allows a Browser Cookie to be set (subject to Browser privacy-settings).

<name> is the Cookie name

<value> is the Cookie value

<expiry hours> is the number of hours to the expiry of the cookie (optional)

Example

@SetCookie 'MyCookie','MyValue',1

To read a cookie value, the "Cookie" function can be used as in the following example:

@Dim k:S
@Assign k = Cookie('MyCookie')